def multiply() :
    a = 1
    b = int(input("输入乘法表程度n = "))
    b += 1
    while b > 1 :
        b -= 1
        a = 1
        while a <= b:
            print(a,'*',b,'=',a*b,end = '\t')
            a += 1
        print()


multiply()